package sicnu.cs.ich.activity.config;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
import sicnu.cs.ich.activity.util.SensitiveWordUtil;

/**
 * @author 黎琦
 * @date 2021-12-22 14:25
 */
@Slf4j
@Component
@Order(value = 1)
@RequiredArgsConstructor
public class ListenerConfig implements ApplicationRunner {
    private final SensitiveWordUtil sensitiveWordUtil;
    @Override
    public void run(ApplicationArguments args) {
        sensitiveWordUtil.initializationWord();
    }


}